<template>
  <div>
      {{form.name}}
      <!-- <button @click="get_Data">123123</button> -->
  </div>
</template>

<script>
import {onMounted, reactive,ref} from 'vue'
import axios from '../http/axios'
 
export default {
    setup(){
        let form = reactive({'name':'蒯','pass':'牛'}) 
        // ref获取数据必须添加value
        let name =ref('niu')
        let get_Data=()=>{
            axios('/test','get').then(res=>{
                console.log(res)
            })
        }
        
        return{
        form,
        name,
        // get_Data,
        
    },
    onMounted(
        get_Data
    )
    }
    
}
</script>

<style>

</style>